<template>
  <div class="plogin">
    <!-- 头像区域 -->
    <div class="profile-photo">
      <span class="iconfont icon-denglu"></span>
    </div>
    <!-- 登录信息区域 -->
    <div class="login-info">
      <div class="login-name">大运摩托</div>
      <div class="login-tel">
        <span class="iconfont icon-shouji"></span>
        <span>{{phone}}</span>
      </div>
    </div>
    <span class="iconfont icon-arrowright"></span>
  </div>
</template>

<script>
export default {
  name: 'PLogin',
  props: {
    phone: {
      type: String,
      default() {
        return '1568777777'
      }
    }
  }

}
</script>

<style lang="less" scoped>
.plogin {
  display: flex;
  position: relative;
  margin-top: 2px;
  color: #f5f5f5;
  background-color: #FF8097;
}
.icon-arrowright{
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  font-size: 20px;
}

.profile-photo {
  overflow: hidden;
  width: 90px;
  height: 90px;
  text-align: center;

  .icon-denglu {
    padding: 6px;
    font-size: 50px;
    line-height: 90px;
    border-radius: 50%;
    background-color: #c6cfd2;
  }
}
.login-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  .login-name {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 700;
  }
  .icon-shouji {
    font-size: 18px;
  }
}

</style>